package com.hd.controller;

import com.hd.pojo.XInfo;
import com.hd.pojo.XPart;
import com.hd.service.XPartService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by 1 on 2017/11/23.
 */
@RestController
@RequestMapping("/therapists/xPart")
public class XPartController {

    @Resource
    private XPartService xPartService;

    @RequestMapping("searchXPart")
    public List<XPart> searchXPart(){
        return xPartService.getAllXPart();
    }

    @PostMapping("/addXInfo")
    public String addXInfo(XInfo xInfo){

        return "";
    }

}
